<?php

class LoginModule extends fvModule {

    function __construct () {
        $moduleName = strtolower(substr(__CLASS__, 0, -6));

        parent::__construct(fvSite::$fvConfig->get("modules.{$moduleName}.smarty.template"), 
                            fvSite::$fvConfig->get("modules.{$moduleName}.smarty.compile"), 
                            fvSite::$Layoult);
    }

    function showIndex() {
    	$this->__assign('login_error', fvSite::$fvSession->get('login_error'));
    	fvSite::$fvSession->set('login_error', null);
        return $this->__display('login.tpl');
    }
    
	function showDeny() {
        return $this->__display("deny.tpl");
    }
    
    function showLoginform() {
        return $this->__display('login_form.tpl');
    }
}

?>
